
package org.abc;


public class TypeDemo {
    public static void main(String[] args) {


        // 10 整数默认是int 直接写小数默认是double
        long i = 2; //自动隐式类型转换


        int y = (int)i; //强制类型转换

        //类型数据f Ffloat  d  D double l L long

        float f1 = .5f;
        double d1 = .5D;
        long g1 = 1;

        short s = 6;
        //s = (short)(s + 1);
        //System.out.println(s);
        s+=1;
        System.out.println(s);

    }
}
